#ifndef __LED_DRIVER_H__
#define __LED_DRIVER_H__

#define LEDX_IOWR(x) (_IOWR('L', x, int)) //最好加个括号 因为这样就不用去看_IOWR宏的展开了

#define GET_SIZE_FROM_CMD(cmd) ({ \
    int res; \
    res = ((cmd >> 16) & 0x3FFF); \
    res; \
})

#define GET_FUNC_FROM_CMD(cmd) ({ \
    int res; \
    res = cmd & 0xFF; \
    res; \
})

#endif